
public abstract class Factory {
public static final String US="US";
public static final String FR="FR";
public abstract Date genDate(int d, int m, int y);
public abstract PhoneNumber getPhoneNumber(String p);
public abstract Address getAddress(int nr, String sName,String town,int code);
public static Factory getFactory(String type)
{
	if(type.equals(Factory.FR))
		return FrenchFactory.getInstance();
	if(type.equals(Factory.US))
		return AmericanFactory.getInstance();
	    return AmericanFactory.getInstance();
}
}
